package org.cyclone.order.hsql.preferences;

import org.cyclone.order.hsql.HsqlPlugin;
import org.cyclone.order.ui.preferences.EPreferences;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

public class HsqlPreferencesInitializer extends AbstractPreferenceInitializer {

    @Override
    public void initializeDefaultPreferences() {
        IPreferenceStore preferenceStore = HsqlPlugin.getDefault().getPreferenceStore();

        preferenceStore.setDefault(EPreferences.HSQL_SAME_AS_DBNAME.getName(), true);
        preferenceStore.setDefault(EPreferences.HSQL_DBNAME.getName(), "demodb");
        preferenceStore.setDefault(EPreferences.HSQL_DBPATH.getName(), "c:\\demodb");
        preferenceStore.setDefault(EPreferences.HSQL_DBFILE_NAME.getName(), "");
    }

}
